package com.mysteel.order.feign;

import com.mysteel.common.to.SkuHasStockTo;
import com.mysteel.order.vo.FareVo;
import com.mysteel.order.vo.LockStockResult;
import com.mysteel.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * ProjectName: mail
 * ClassName: WmsFeignService
 * Description:
 * date: 2021/03/22/022 11:38
 *
 * @author xiaochao
 */
@FeignClient("ware")
public interface WmsFeignService {
    @ResponseBody
    @PostMapping("/ware/waresku/hasStock")
    List<SkuHasStockTo> getSkuHasStock(@RequestBody List<Long> skuIds);

    @GetMapping("/ware/wareinfo/getFare")
    FareVo getFare(@RequestParam(name = "addrId") Long addrId);

    @PostMapping("/ware/waresku/lock/order")
    Boolean lockOrderStock(@RequestBody WareSkuLockVo lockVo);
}
